package com.richard.demo.controller;
import com.richard.demo.bean.person;
import com.richard.demo.entity.StudentInfoEntity;
import com.richard.demo.service.StudentInfoService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class JsonDemo_1 {
    @GetMapping("/json_1")
    @ResponseBody
    public List<StudentInfoEntity> enter(String stuId){

        return StudentInfoService.studentInfoService.getStudentInfo(stuId);
    }
}
